The files in this directory will successfully replicate all figures and tables in Bond, Conrad, Moses, and Simmons, "Detecting Anomalies in Data on Government Violence". The directory contains the following files:

1. This 01_README.txt file

2. 02_Replication_RScript_CDCR.R contains the R script to replicate all tables and results

3. 02_Replication_RScript_CDCR.html is a log of the above R script and proof that it can be replicated in one attempt.

4. 03_CDCR_Uses_of_Force_2008-2018_v2.dta is the data used in the analysis.

5. Replication_BonConMosSim.Rproj is an R project file. This facilitates the use of relative paths to files, making it easier to find the files one needs.

NOTE:  All analyses conducted in RStudio Version 1.4.1103.  Below, find the system.Info() report of the analysis:

> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] here_1.0.1         kableExtra_1.3.4   ggrepel_0.9.1      ggthemes_4.2.4    
 [5] pcal_1.0.0         boot_1.3-27        BenfordTests_1.2.0 janitor_2.1.0     
 [9] broom_0.7.6        rio_0.5.26         magrittr_2.0.1     forcats_0.5.1     
[13] stringr_1.4.0      dplyr_1.0.5        purrr_0.3.4        readr_1.4.0       
[17] tidyr_1.1.3        tibble_3.1.1       ggplot2_3.3.3      tidyverse_1.3.1   
[21] pacman_0.5.1      

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6        svglite_2.0.0     lubridate_1.7.10  rprojroot_2.0.2  
 [5] digest_0.6.27     assertthat_0.2.1  utf8_1.2.1        R6_2.5.0         
 [9] cellranger_1.1.0  backports_1.2.1   reprex_2.0.0      evaluate_0.14    
[13] httr_1.4.2        pillar_1.6.0      Rdpack_2.1.1      rlang_0.4.10     
[17] curl_4.3          readxl_1.3.1      rstudioapi_0.13   data.table_1.14.0
[21] rmarkdown_2.7     webshot_0.5.2     foreign_0.8-81    munsell_0.5.0    
[25] xfun_0.22         compiler_4.0.2    modelr_0.1.8      systemfonts_1.0.1
[29] pkgconfig_2.0.3   htmltools_0.5.1.1 tidyselect_1.1.0  viridisLite_0.4.0
[33] fansi_0.4.2       crayon_1.4.1      dbplyr_2.1.1      withr_2.4.2      
[37] rbibutils_2.1.1   grid_4.0.2        jsonlite_1.7.2    gtable_0.3.0     
[41] lifecycle_1.0.0   DBI_1.1.1         scales_1.1.1      zip_2.1.1        
[45] cli_2.5.0         stringi_1.5.3     fs_1.5.0          snakecase_0.11.0 
[49] xml2_1.3.2        ellipsis_0.3.1    generics_0.1.0    vctrs_0.3.7      
[53] openxlsx_4.2.3    tools_4.0.2       glue_1.4.2        hms_1.0.0        
[57] yaml_2.2.1        colorspace_2.0-0  rvest_1.0.0       knitr_1.33       
[61] haven_2.4.1      
